this.name = "Combat Computers";
this.author = "eric walch, thargoid, lestradae";
this.copyright = "";
this.description = "Automatic target locking to attacking ships.";
this.version = "1.0";

this.missionVariables.CombatComputerIdentifier = '[Combat Computers]';

this.shipBeingAttacked = function (attacker) {
	if (player.ship.hasEquipment("EQ_COMBAT_COMP") && player.ship.target === null && attacker && !attacker.isCloaked) {
		player.ship.target = attacker;
		player.consoleMessage(this.missionVariables.CombatComputerIdentifier + " Auto-locked onto hostile vessel - " + attacker.displayName + ".", 5);
	}
};